package lanqiao.dontaiguihua.moni;


//2023
public class Lan3494 {
    private static int[] nums={3,2,0,2};
    static boolean ak(int n){
        int index=0;
        while(n>0&&index<=3){
            if(nums[index]==n%10){
                index++;
            }
            n/=10;

        }
        return index==4;
    }

    public static void main(String[] args) {
        int count=0;
        for(int i=12345678;i<=98765432;i++){
            if(!ak(i)){
                count++;
            }
        }
        System.out.println(count);
    }
}
